From b9f5191e43c6c917e4f421683f4486e31dbff8b8 Mon Sep 17 00:00:00 2001 From: jakescott Date: Tue, 9 Sep 2014 16:30:25 +1200 Subject: [PATCH] fix sample code to do with color-rs. Renamed HSV to Hsv and RGB to Rgb so that it compiles and works --- src/doc/source/guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/source/guide.md b/src/doc/source/guide.md index 3fa8edcc8..c826d0194 100644 --- a/src/doc/source/guide.md +++ b/src/doc/source/guide.md @@ -141,11 +141,11 @@ Now, you can pull in that library using `extern crate` in ```rs extern crate color; -use color::{RGB, ToHSV}; +use color::{Rgb, ToHsv}; fn main() { println!("Converting RGB to HSV!"); - let red = RGB::new(255u8, 0, 0); + let red = Rgb::new(255u8, 0, 0); println!("HSV: {}", red.to_hsv::()); } ``` -- 2.30.2